home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 6013 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.7 KB

  1. Path: dbridger.inlink.com!user
  2. From: dbridger@inlink.com (Dave Bridger)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Is C portable?
  5. Date: Sun, 11 Feb 1996 01:10:20 -0600
  6. Organization: inlink
  7. Message-ID: <dbridger-1102960110200001@dbridger.inlink.com>
  8. References: <4fg601$7o9@azure.acsu.buffalo.edu>
  9. NNTP-Posting-Host: dbridger.inlink.com
  10.  
  11. In article <4fg601$7o9@azure.acsu.buffalo.edu>, boonteh@acsu.buffalo.edu
  12. (Ricky B Teh) wrote:
  13.  
  14. > Just a simple question:
  15. > Do you think C a portable language?
  16. > -Rick
  17.  
  18. Certainly. Compilers for the C language have been written for a large
  19. number of different computers over the last twenty years. Now if you are
  20. really asking whether or not programs written in C are portable, that
  21. answer depends on how the program was written. Programs can be written to
  22. be portable or not. If the programmer is careful, then C programs can be
  23. transparently portable depending, of course, upon the Operating System
  24. environment in which they run. On the other hand, a C program that depends
  25. upon specific features of the hardware on which is runs such as word size,
  26. or fixed memory locations, can be so non-portable as to be totally useless
  27. on any other processor or even computer configuration.
  28.  
  29. The overriding consideration, however, is that even if C programs
  30. themselves are not always portable, C Programmers are generally portable
  31. and often, after relatively minor adjustments, can be used to produce
  32. programs that run on a large number of different computers.
  33.  
  34. --Dave
  35. -- 
  36. The Reality Razors:
  37. 1) Never ascribe to malice that which can be easily attributed to stupidity.
  38. 2) Never ascribe to planning that which can be easily attributed to luck.
  39. 3) Never ascribe to conspiracy that which can be easily be attributed to coincidence.
  40.